<template>
  <div class="school">
    <h2>我是School组件</h2>
    <h3>校名：{{name}}</h3>
    <h3>地址：{{address}}</h3>
    <hr>
    <Chengdu/>
  </div>
</template>

<script>
  import Chengdu from './Chengdu.vue'
  export default {
    name:'School',
    data() {
        return {
            name:'尚硅谷',
            address:'宏福科技园'
        }
    },
    components:{Chengdu}
  }
</script>

<style scoped>
    .school {
        background-color: orange;
        padding: 20px;
    }
</style>